package com.ccrfid.rmc6.service.business.rollcall2;

import com.ccrfid.rmc6.appconfig.exception.pojo.AppException;
import com.ccrfid.rmc6.entity.business.rollcall2.RcRecordDetailEntity;
import com.ccrfid.rmc6.entity.business.rollcall2.RcRecordEntity;
import com.ccrfid.rmc6.repository.search.SearchCriteria;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface Rollcall2Service {

    //4.1 分页查询点名记录
    Page<RcRecordEntity> getRcRecordPage(SearchCriteria criteria, Pageable pageable);

    //4.2 临时开始一个点名
    RcRecordEntity doRollCall(Long orgGroupId, Long locationGroupId, Integer submitStatus) throws AppException;

    //4.3 提交临时点名结果
    RcRecordEntity submitRcRecord(Long recordId) throws AppException;

    //4.4 分页查询某个点名记录详细结果
    Page<RcRecordDetailEntity> getRcRecordDetailPage(SearchCriteria criteria, Pageable pageable);

    //4.5 手工点到某个人/修改点到状态
    RcRecordDetailEntity updateRcRecordDetail(Long detailId, RcRecordDetailEntity entity) throws AppException;

    //获取组织下属点名对象组Id
    List<Long> getGroupIdByOrgId(Long orgId);

}
